#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
#include<time.h>
#include<string.h>

void InsertSort(int* a, int n);
void PrintArray(int* a, int n);
void Swap(int* p1, int* p2);

void BubbleSort(int* a, int n);
void ShellSort(int* a, int n);
void SelectSort(int* a, int n);
void HeapSort(int* a, int n);

void QuickSort(int* a, int begin, int end);
//void QuickSort2(int* a, int begin, int end);
int PartSort1(int* a, int begin, int end);
int PartSort3(int* a, int begin, int end);

void QuickSortNonR(int* a, int begin, int end);


void MergeSort(int* a, int n);
void MergeSortNonR(int* a, int n);
